/*
 * @Description: 工作证
 * @Author: iamsmiling
 * @Date: 2021-06-09 22:26:07
 * @LastEditTime: 2021-06-09 22:37:10
 */

import 'package:credit_business_circle/R/R.dart';
import 'package:credit_business_circle/components/dialog_wrapper/dialog_wrapper.dart';
import 'package:flutter/material.dart';

Future showAdmissionCardDemoDialog(BuildContext context) {
  // RenderBox renderBox = context.findRenderObject() as RenderBox;
  // Rect box = renderBox.localToGlobal(Offset.zero) & renderBox.size;

  return showDialog(
      context: context,
      builder: (BuildContext context) {
        return DialogWrapper(builder: (BuildContext context) {
          return Container(
            margin: EdgeInsets.only(
                bottom: R.dimen.dp40, right: R.dimen.dp24, top: R.dimen.dp24),
            padding: EdgeInsets.only(left: R.dimen.dp24, bottom: R.dimen.dp40),
            child: Column(
              crossAxisAlignment: CrossAxisAlignment.start,
              mainAxisSize: MainAxisSize.min,
              children: [
                Text(
                  "拍照示例-名片",
                  style: TextStyle(
                      fontSize: R.dimen.sp16,
                      color: R.color.ff222222,
                      fontWeight: FontWeight.w600),
                ),
                Container(
                  margin: EdgeInsets.only(top: R.dimen.dp36),
                  child: Image.asset(R.image.admissionCard),
                ),
              ],
            ),
          );
        });
      });
}
